<%@page import="org.yate.oa.utils.Constants"%>
<%@page import="org.yate.oa.model.LoginEntity"%>
<%@page import="java.text.SimpleDateFormat, java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set value="${pageContext.request.contextPath}" var="ctx" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>助理新建绩效</title>
<%
	LoginEntity le = (LoginEntity) session.getAttribute(Constants.SESSION_USER_ENTITY);
%>
<link href="${ctx}/css/skin.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/css/chosen.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/js/jquery.js"></script>
<script type="text/javascript" src="${ctx}/js/backOffice.js"></script>
<script type="text/javascript" src="${ctx}/js/chosen.jquery.min.js"></script>
<script type="text/javascript">
	var curTargetUserId;
	var curCreaterId;
	var partsJSONArray = [];
	$(document).ready(function() {
		initParts();
		init();
	});

	function getQueryString(name) {
		var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
		var r = window.location.search.substr(1).match(reg);
		if (r != null)
			return unescape(r[2]);
		return null;
	}

	function initParts() {
		partsJSONArray = [ {
			"pName" : "工作操守",
			"pScore" : "100",
			"pWeight" : "8",
			"pDes" : "",
			"pStandard" : "",
			"selfScore" : "0",
			"leaderScore" : "0",
			"managerScore" : "0",
			"des" : "",
			"partType" : "2"
		}, {
			"pName" : "工作态度",
			"pScore" : "100",
			"pWeight" : "6",
			"pDes" : "",
			"pStandard" : "",
			"selfScore" : "0",
			"leaderScore" : "0",
			"managerScore" : "0",
			"des" : "",
			"partType" : "2"
		}, {
			"pName" : "团队意识",
			"pScore" : "100",
			"pWeight" : "4",
			"pDes" : "",
			"pStandard" : "",
			"selfScore" : "0",
			"leaderScore" : "0",
			"managerScore" : "0",
			"des" : "",
			"partType" : "2"
		}, {
			"pName" : "部门协作",
			"pScore" : "100",
			"pWeight" : "6",
			"pDes" : "",
			"pStandard" : "",
			"selfScore" : "0",
			"leaderScore" : "0",
			"managerScore" : "0",
			"des" : "",
			"partType" : "2"
		}, {
			"pName" : "企业文化",
			"pScore" : "100",
			"pWeight" : "6",
			"pDes" : "",
			"pStandard" : "",
			"selfScore" : "0",
			"leaderScore" : "0",
			"managerScore" : "0",
			"des" : "",
			"partType" : "2"
		} ];
	}
	function init() {
		//生成考核周期（上个月21号到当前月20号）
		var curDate = new Date();
		var cycle;
		if (curDate.getMonth() == 0) {
			cycle = (curDate.getFullYear()-1) + "年12"
					+ "月21日 至 " + curDate.getFullYear() + "年"
					+ (curDate.getMonth()+1) + "月20日";
		} else {
			cycle = curDate.getFullYear() + "年" + curDate.getMonth()
					+ "月21日 至 " + curDate.getFullYear() + "年"
					+ (curDate.getMonth() + 1) + "月20日";
		}
		$("#spanCycle").html(cycle);
		//生成被考核人姓名列表
		var obj = {};
		obj.type = "getChildrenOrd";
		$.ajax({
			type : 'post',
			dataType : 'json',
			data : obj,
			url : '${ctx}/user/post',
			success : function(data) {
				if (data.status == "200") {
					var rows = data.data;
					var str = '';
					for ( var i = 0; i < rows.length; i++) {
						str += '<option value="'+rows[i].id+'">'
								+ rows[i].trueName + '</option>';
					}
					$("#selTargetUser").html(str);
					$("#selCreater").html(str);
					var tmpMonth;
					if((curDate.getMonth()+1)<10){
						tmpMonth = "0"+(curDate.getMonth()+1);
					}else{
						tmpMonth = curDate.getMonth()+1;
					}
					//生成绩效表标题:被考核人姓名+当前时间
					$("#performanceName").text(
							$("#selTargetUser").find("option:selected").text()
									+ "_月度绩效考核表" + curDate.getFullYear() + ""
									+ tmpMonth);
					var prmTargetUserId = getQueryString("target");
					var prmCreaterId = getQueryString("createrId");
					if (prmTargetUserId != null && prmTargetUserId != undefined
							&& prmTargetUserId.length > 0
							&& prmCreaterId != null
							&& prmCreaterId != undefined
							&& prmCreaterId.length > 0) {
						$("#selTargetUser").val(prmTargetUserId);
						$("#selCreater").val(prmCreaterId);
						changePerformanceName();
					} else {
						curTargetUserId = $("#selTargetUser").select().val();
						curCreaterId = $("#selCreater").select().val();
						getRationParts();
					}
					$("#selTargetUser").chosen();
					$("#selCreater").chosen();
				} else {
					//alert(data.msg);
					$.msgbox.show({
						message : data.msg,
						icon : 'no',
						timeOut : 1500
					});
				}
			}
		});
	}

	function changePerformanceName() {
		$("#performanceName").text(
				$("#selTargetUser").find("option:selected").text() + "_"
						+ $("#performanceName").text().split("_")[1]);
		curTargetUserId = $("#selTargetUser").select().val();
		curCreaterId = $("#selCreater").select().val();
		getRationParts();
	}

	//加载定量部分的内容
	function getRationParts() {
		var trs = $("#tbodyParts").find("tr");
		if (trs.length > 5) {
			for ( var i = 5; i <= trs.length; i++) {
				$(trs[i]).remove();
			}
		}
		var obj = {};
		obj.type = "get";
		obj.targetUserId = curTargetUserId;
		obj.createrId = curCreaterId;
		$
				.ajax({
					type : 'post',
					dataType : 'json',
					data : obj,
					url : '${ctx}/performance/post',
					success : function(data) {
						var str = '';
						if (data.code == "200" && data.data != null) {
							var rows = data.data;
							for ( var i = 0; i < rows.length; i++) {
								if (i == 0) {
									str += '<tr><td>'
											+ (i + 6)
											+ '</td>'
											+ '<td rowspan="10">定量70%</td>'
											+ '<td><input type="text" id="txtDL'+i+'1" name="partName" value="'+rows[i].partName+'" class="txtRemark" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'2" name="partScore" value="100" readonly="readonly" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'3" name="partWeight" value="'+rows[i].partWeight+'" class="txtScore" /></td>'
											+ '<td><textarea rows="5" cols="30" id="txtDL'+i+'4" name="partDes" class="areaDes">'
											+ rows[i].partDes
											+ '</textarea></td>'
											+ '<td><textarea rows="5" cols="25" id="txtDL'+i+'5" name="partStandard" class="areaDes">'
											+ rows[i].partStandard
											+ '</textarea></td>'
											+ '<td><input type="text" id="txtDL'+i+'6" maxlength="5" name="partSelfScore" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'7" maxlength="5" name="partLeaderScore" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'9" maxlength="5" name="partManagerScore" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'8" name="partRemark" class="txtRemark" /></td>';
								} else {
									str += '<tr><td>'
											+ (i + 6)
											+ '</td>'
											+ '<td><input type="text" id="txtDL'+i+'1" name="partName" value="'+rows[i].partName+'" class="txtRemark" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'2" name="partScore" value="100" readonly="readonly" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'3" name="partWeight" value="'+rows[i].partWeight+'" class="txtScore" /></td>'
											+ '<td><textarea rows="5" cols="30" id="txtDL'+i+'4" name="partDes" class="areaDes">'
											+ rows[i].partDes
											+ '</textarea></td>'
											+ '<td><textarea rows="5" cols="25" id="txtDL'+i+'5" name="partStandard" class="areaDes">'
											+ rows[i].partStandard
											+ '</textarea></td>'
											+ '<td><input type="text" id="txtDL'+i+'6" maxlength="5" name="partSelfScore" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'7" maxlength="5" name="partLeaderScore" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'9" maxlength="5" name="partManagerScore" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'8" name="partRemark" class="txtRemark" /></td>';
								}
							}
							if (rows.length < 10) {
								for ( var i = 0; i < (10 - rows.length); i++) {
									str += '<tr><td>'
											+ (i + rows.length + 6)
											+ '</td>'
											+ '<td><input type="text" id="txtDL'+i+'1" name="partName" class="txtRemark" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'2" name="partScore" value="100" readonly="readonly" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'3" name="partWeight" class="txtScore" /></td>'
											+ '<td><textarea rows="5" cols="30" id="txtDL'+i+'4" name="partDes" class="areaDes"></textarea></td>'
											+ '<td><textarea rows="5" cols="25" id="txtDL'+i+'5" name="partStandard" class="areaDes"></textarea></td>'
											+ '<td><input type="text" id="txtDL'+i+'6" maxlength="5" name="partSelfScore" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'7" maxlength="5" name="partLeaderScore" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'9" maxlength="5" name="partManagerScore" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'8" name="partRemark" class="txtRemark" /></td>';
								}
							}
						} else {
							for ( var i = 0; i <= 9; i++) {
								if (i == 0) {
									str += '<tr><td>'
											+ (i + 6)
											+ '</td>'
											+ '<td rowspan="10">定量70%</td>'
											+ '<td><input type="text" id="txtDL'+i+'1" name="partName" class="txtRemark" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'2" name="partScore" value="100" readonly="readonly" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'3" name="partWeight" class="txtScore" /></td>'
											+ '<td><textarea rows="5" cols="30" id="txtDL'+i+'4" name="partDes" class="areaDes"></textarea></td>'
											+ '<td><textarea rows="5" cols="25" id="txtDL'+i+'5" name="partStandard" class="areaDes"></textarea></td>'
											+ '<td><input type="text" id="txtDL'+i+'6" maxlength="5" name="partSelfScore" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'7" maxlength="5" name="partLeaderScore" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'9" maxlength="5" name="partManagerScore" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'8" name="partRemark" class="txtRemark" /></td>';
								} else {
									str += '<tr><td>'
											+ (i + 6)
											+ '</td>'
											+ '<td><input type="text" id="txtDL'+i+'1" name="partName" class="txtRemark" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'2" name="partScore" value="100" readonly="readonly" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'3" name="partWeight" class="txtScore" /></td>'
											+ '<td><textarea rows="5" cols="30" id="txtDL'+i+'4" name="partDes" class="areaDes"></textarea></td>'
											+ '<td><textarea rows="5" cols="25" id="txtDL'+i+'5" name="partStandard" class="areaDes"></textarea></td>'
											+ '<td><input type="text" id="txtDL'+i+'6" maxlength="5" name="partSelfScore" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'7" maxlength="5" name="partLeaderScore" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'9" maxlength="5" name="partManagerScore" class="txtScore" /></td>'
											+ '<td><input type="text" id="txtDL'+i+'8" name="partRemark" class="txtRemark" /></td>';
								}
							}
						}
						$("#tbodyParts").append(str);
					}
				});
	}

	function shake(ele, cls, times) {
		var i = 0, t = false, o = ele.attr("class") + " ", c = "", times = times || 2;
		if (t)
			return;
		t = setInterval(function() {
			i++;
			c = i % 2 ? o + cls : o;
			ele.attr("class", c);
			if (i == 2 * times) {
				clearInterval(t);
				ele.removeClass(cls);
			}
		}, 200);
	}

	function checkForm() {
		var partNames = $("input[name=partName]");
		var partScores = $("input[name=partScore]");
		var partWeights = $("input[name=partWeight]");
		var partDess = $("textarea[name=partDes]");
		var partStandards = $("textarea[name=partStandard]");
		var partSelfScores = $("input[name=partSelfScore]");
		var partLeaderScores = $("input[name=partLeaderScore]");
		var partManagerScores = $("input[name=partManagerScore]");
		var partRemarks = $("input[name=partRemark]");

		var tmpTotalScore = 0;
		var tmpTotalWeight = 0;
		for ( var i = 0; i < partNames.length; i++) {
			if ($.trim($(partNames[i]).val()) != "") {
				if ($.trim($(partScores[i]).val()) == ""
						|| isNaN($.trim($(partScores[i]).val()))) {
					shake($(partScores[i]), 'red', 5);
					$(partScores[i]).focus();
					return false;
				} else if ($.trim($(partWeights[i]).val()) == ""
						|| isNaN($.trim($(partScores[i]).val()))) {
					shake($(partWeights[i]), 'red', 5);
					$(partWeights[i]).focus();
					return false;
				} else if ($.trim($(partDess[i]).val()) == "") {
					shake($(partDess[i]), 'red', 5);
					$(partDess[i]).focus();
					return false;
				} else if ($.trim($(partStandards[i]).val()) == "") {
					shake($(partStandards[i]), 'red', 5);
					$(partStandards[i]).focus();
					return false;
				}
				tmpTotalScore += parseInt($(partScores[i]).val());
				tmpTotalWeight += parseInt($(partWeights[i]).val());
			}
		}
		if (tmpTotalWeight != 70) {
			//alert("考核项目权重总值不合法。");
			$.msgbox.show({
				message : '考核项目权重总值不合法。',
				icon : 'no',
				timeOut : 1500
			});
			return false;
		}
		initParts();
		for ( var i = 0; i < partNames.length; i++) {
			if ($.trim($(partNames[i]).val()) != "") {
				partsJSONArray.push({
					"pName" : $.trim($(partNames[i]).val()),
					"pScore" : $.trim($(partScores[i]).val()),
					"pWeight" : $.trim($(partWeights[i]).val()),
					"pDes" : $.trim($(partDess[i]).val()),
					"pStandard" : $.trim($(partStandards[i]).val()),
					"selfScore" : "0",
					"leaderScore" : "0",
					"managerScore" : "0",
					"des" : "",
					"partType" : "1"
				});
			}
		}
		//新增绩效表
		var obj = {};
		var curDate = new Date();
		obj.type = "makep";
		obj.pName = $.trim($("#performanceName").text());
		obj.targetUserId = curTargetUserId;
		obj.createrId = curCreaterId;
		obj.beginPeriod = new Date(curDate.getFullYear(),
				(curDate.getMonth() - 1), 21, 0, 0, 0).getTime();
		obj.endPeriod = new Date(curDate.getFullYear(), curDate.getMonth(), 20,
				0, 0, 0).getTime();
		obj.creationDate = curDate.getTime();
		obj.parts = JSON.stringify(partsJSONArray);

		$("#btnCreate").hide();
		$("#createWait").show();
		$.ajax({
			type : 'post',
			dataType : 'json',
			data : obj,
			async : true,
			url : '${ctx}/performance/post',
			success : function(data) {
				if (data.code == 200) {
					$.msgbox.show({
						message : "创建成功",
						icon : 'ok',
						timeOut : 1000
					});
				} else if (data.code == 301) {
					//alert("【" + obj.pName + "】已经创建并且已经提交给目标用户进行自评。");
					$.msgbox.show({
						message : "【" + obj.pName + "】已经创建并且已经提交给目标用户进行自评。",
						icon : 'no'
					});
				} else {
					//alert(data.msg);
					$.msgbox.show({
						message : data.msg,
						icon : 'no'
					});
				}
				$("#createWait").hide();
				$("#btnCreate").show();
			}
		});

	}
</script>
</head>
<body>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="17" height="29" valign="top"
				background="${ctx}/images/mail_leftbg.gif"><img
				src="${ctx}/images/left-top-right.gif" width="17" height="29" /></td>
			<td width="" height="29" valign="top"
				background="${ctx}/images/content-bg.gif"><table width="100%"
					height="31" border="0" cellpadding="0" cellspacing="0"
					class="left_topbg" id="table2">
					<tr>
						<td height="31"><div class="titlebt">新建绩效</div></td>
					</tr>
				</table></td>
			<td width="16" valign="top"
				background="${ctx}/images/mail_rightbg.gif"><img
				src="${ctx}/images/nav-right-bg.gif" width="16" height="29" /></td>
		</tr>
		<tr>
			<td height="71" valign="middle"
				background="${ctx}/images/mail_leftbg.gif">&nbsp;</td>
			<td valign="top" bgcolor="#F7F8F9"><table width="100%"
					height="138" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td height="13" valign="top">&nbsp;</td>
					</tr>
					<tr>
						<td valign="top"><table width="98%" border="0" align="center"
								cellpadding="0" cellspacing="0">
								<tr>
									<td class="left_txt">当前位置：新建绩效</td>
								</tr>
								<tr>
									<td height="20"><table width="100%" height="1" border="0"
											cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
											<tr>
												<td></td>
											</tr>
										</table></td>
								</tr>
								<tr>
									<td><table width="100%" height="55" border="0"
											cellpadding="0" cellspacing="0">
											<tr>
												<td width="10%" height="55" valign="middle"><img
													src="${ctx}/images/title.gif" width="54" height="55"></td>
												<td width="90%" valign="top"><span class="left_txt2">
														说明：<br>
														考核分为员工自评、直接上级测评、中心负责人终评流程；扣分加分项目必须明确理由，否则视为无效。
														100分制考核；考核系数：105分以上，考核系数1.2;100以上-105，考核系数1.1；100-95分，考核系数1；95-90分，考核系数0.8；90-80分，考核系数0.5,；80分以下，考核系数0；如常态化负责本岗位之外的其他工作，根据工作重要程度及工作量大小可适当增加5-10分附加分
												</span></td>
											</tr>
										</table></td>
								</tr>
								<tr>
									<td>&nbsp;</td>
								</tr>
								<tr>
									<td><table width="100%" height="31" border="0"
											cellpadding="0" cellspacing="0" class="nowtable">
											<tr>
												<td class="left_bt2" align="middle">
													<h1 id="performanceName"></h1>
												</td>
											</tr>
										</table></td>
								</tr>
								<tr>
									<td width="100px;" valign="top"
										style="min-height: 350px; height: 350px;">
										<%
											LoginEntity user = (LoginEntity) session.getAttribute("user");
										%>
										<table class="tblPerformance" cellpadding="0" cellspacing="0">
											<tr>
												<td colspan="11" align="middle">考核周期： <span
													id="spanCycle"></span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
													被考核人姓名：<select id="selTargetUser"
													onchange="changePerformanceName()"></select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
													考核人姓名：<select id="selCreater"
													onchange="changePerformanceName()"></select>
												</td>
											</tr>
											<tr>
												<td width="5%">序号</td>
												<td colspan="2">考核项目</td>
												<td width="5%">分值</td>
												<td width="5%">权重%</td>
												<td>指标描述</td>
												<td>评价标准</td>
												<td width="5%">自评</td>
												<td width="7%">考评结果</td>
												<td width="7%">主管考评</td>
												<td>备注</td>
											</tr>
											<tbody id="tbodyParts">
												<tr>
													<td>1</td>
													<td rowspan="5">定性30%</td>
													<td>工作操守</td>
													<td>100</td>
													<td>8</td>
													<td>
														<ul>
															<li>1.具备该岗位职业操守，遵守保密义务，并积极宣传正面信息；</li>
															<li>2.处理事情，客观公正，公私分明；</li>
															<li>3.具备诚信的价值观，诚实工作，不弄虚作假；</li>
															<li>4.未遵守以上职业操守，给公司造成负面影响，给其他同事造成困扰；</li>
															<li>5.以身作则，积极宣传正面信息，起表帅作用有具体事例可做优秀典型；</li>
														</ul>
													</td>
													<td>
														<ul>
															<li>1.符合1-3，不加分不扣分，得10分；</li>
															<li>2.符合标准4，此项0分；</li>
															<li>3.符合5，+5分，得15分；</li>
														</ul>
													</td>
													<td><input type="text" id="txtGZCS1" maxlength="5"
														class="txtScore" /></td>
													<td><input type="text" id="txtGZCS2" maxlength="5"
														class="txtScore" /></td>
													<td><input type="text" id="txtGZCS4" maxlength="5"
														class="txtScore" /></td>
													<td><input type="text" id="txtGZCS3" class="txtRemark" />
													</td>
												</tr>
												<tr>
													<td>2</td>
													<td>工作态度</td>
													<td>100</td>
													<td>6</td>
													<td>
														<ul>
															<li>1.不推卸，能够按时完成本岗位工作；</li>
															<li>2.不服从工作分配、顶撞领导、消极怠工；</li>
															<li>3.工作时间内利用公司资源做与工作无关的事；</li>
															<li>4.热爱本职工作，有较强的工作进取心，积极配合领导及同事完成各项工作，起表帅作用有具体事例可做优秀典型；</li>
														</ul>
													</td>
													<td>
														<ul>
															<li>1.符合1，不加分不扣分，得10分；</li>
															<li>2.符合2-3，此项0分；</li>
															<li>3.符合4，+5分,得15分；</li>
														</ul>
													</td>
													<td><input type="text" id="txtGZTD1" maxlength="5"
														class="txtScore" /></td>
													<td><input type="text" id="txtGZTD2" maxlength="5"
														class="txtScore" /></td>
													<td><input type="text" id="txtGZTD4" maxlength="5"
														class="txtScore" /></td>
													<td><input type="text" id="txtGZTD3" class="txtRemark" />
													</td>
												</tr>
												<tr>
													<td>3</td>
													<td>团队意识</td>
													<td>100</td>
													<td>4</td>
													<td>
														<ul>
															<li>1.具有集体荣誉感，团结合作，积极参与部门工作建设；</li>
															<li>2.以自我为中心，不能融入集体和团队，挑拨员工间关系；</li>
															<li>3.因个人原因致使部门整体评价下降；</li>
															<li>4.为实现部门任务目标或部门整体表扬作出突出贡献；</li>
														</ul>
													</td>
													<td>
														<ul>
															<li>1.符合1，不加分不扣分，得10分；</li>
															<li>2.符合2-3，此项0分；</li>
															<li>3.符合4，+5分,得15分；</li>
														</ul>
													</td>
													<td><input type="text" id="txtTDYS1" maxlength="5"
														class="txtScore" /></td>
													<td><input type="text" id="txtTDYS2" maxlength="5"
														class="txtScore" /></td>
													<td><input type="text" id="txtTDYS4" maxlength="5"
														class="txtScore" /></td>
													<td><input type="text" id="txtTDYS3" class="txtRemark" />
													</td>
												</tr>
												<tr>
													<td>4</td>
													<td>部门协作</td>
													<td>100</td>
													<td>6</td>
													<td>
														<ul>
															<li>1.配合本部门及其他部门同事完成工作需求；</li>
															<li>2.在处理问题时与同事发生冲突；</li>
															<li>3.在领导发现问题制止或劝解时拒不执行；</li>
															<li>4.被服务对象投诉，并经查实；</li>
															<li>5.处理同事问题时积极、主动、热情并得到同事表扬；</li>
														</ul>
													</td>
													<td>
														<ul>
															<li>1.符合1，不加分不扣分，得10分；</li>
															<li>2.符合2-4，此项0分；</li>
															<li>3.符合5，+5分,得15分；</li>
														</ul>
													</td>
													<td><input type="text" id="txtBMXZ1" maxlength="5"
														class="txtScore" /></td>
													<td><input type="text" id="txtBMXZ2" maxlength="5"
														class="txtScore" /></td>
													<td><input type="text" id="txtBMXZ4" maxlength="5"
														class="txtScore" /></td>
													<td><input type="text" id="txtBMXZ3" class="txtRemark" />
													</td>
												</tr>
												<tr>
													<td>5</td>
													<td>企业文化</td>
													<td>100</td>
													<td>6</td>
													<td>
														<ul>
															<li>1.遵守公司规章制度；积极参加公司各项活动；</li>
															<li>2.逃避、抵触、推诿参加公司活动；</li>
															<li>3.热爱公司，为公司、部门发展作出重大贡献或提出建设性合理化建议被采纳；</li>
														</ul>
													</td>
													<td>
														<ul>
															<li>1.符合1，不加分不扣分，得10分；</li>
															<li>2.符合2，此项0分；</li>
															<li>3.符合3，+5分,得15分；</li>
														</ul>
													</td>
													<td><input type="text" id="txtQYWH1" maxlength="5"
														class="txtScore" /></td>
													<td><input type="text" id="txtQYWH2" maxlength="5"
														class="txtScore" /></td>
													<td><input type="text" id="txtQYWH4" maxlength="5"
														class="txtScore" /></td>
													<td><input type="text" id="txtQYWH3" class="txtRemark" />
													</td>
												</tr>
											</tbody>
											<tfoot>
												<tr>
													<td colspan="7">总分</td>
													<td><span id="spanSelfTotal"></span></td>
													<td><span id="spanLeaderTotal"></span></td>
													<td><span id="spanManagerTotal"></span></td>
													<td></td>
												</tr>
												<tr>
													<td colspan="11"><input id="btnCreate" type="button"
														value="创建" onclick="checkForm()" /> <img
														src="${ctx }/images/wait.gif" id="createWait"
														style="display: none;" /></td>
												</tr>
											</tfoot>
										</table>
									</td>
								</tr>
							</table></td>
					</tr>
				</table></td>
			<td background="${ctx}/images/mail_rightbg.gif">&nbsp;</td>
		</tr>
		<tr>
			<td valign="middle" background="${ctx}/images/mail_leftbg.gif"><img
				src="${ctx}/images/buttom_left2.gif" width="17" height="17" /></td>
			<td height="17" valign="top"
				background="${ctx}/images/buttom_bgs.gif"><img
				src="${ctx}/images/buttom_bgs.gif" width="17" height="17" /></td>
			<td background="${ctx}/images/mail_rightbg.gif"><img
				src="${ctx}/images/buttom_right2.gif" width="16" height="17" /></td>
		</tr>
	</table>
</body>
</html>